Crate umash_sys[][src]

Structs

umash_fp

A fingerprint consists of two independent UMASH hash values.

umash_fp_state

Similarly, the umash_fp_state struct wraps a sink from which we should extract a fingerprint.

umash_params

A single UMASH params struct stores the parameters for a pair of independent UMASH functions.

umash_sink

This struct holds the state for incremental UMASH hashing or fingerprinting.

umash_sink__bindgen_ty_1
umash_sink_umash_oh
umash_sink_umash_twisted_oh
umash_state

The umash_state struct wraps a sink in a type-safe interface: we don’t want to try and extract a fingerprint from a sink configured for hashing.

Functions

umash_digest

Returns the UMASH value for the bytes that have been umash_sink_updated into the state.

umash_fp_digest

Returns the UMASH fingerprint for the bytes that have been umash_sink_updated into the state.

umash_fp_init

Prepares a umash_fp_state for computing the UMASH fingerprint in params.

umash_fprint

Computes the UMASH fingerprint of data[0 ... n_bytes).

umash_full

Computes the UMASH hash of data[0 ... n_bytes).

umash_init

Prepares a umash_state for computing the whichth UMASH function in params.

umash_params_derive

Deterministically derives a umash_params struct from bits and key. The bits values do not have to be particularly well distributed, and can be generated sequentially.

umash_params_prepare

Converts a umash_params struct filled with random values into something usable by the UMASH functions below.

umash_sink_update

Updates a umash_sink to take into account data[0 ... n_bytes).